<?php
ini_set('display_errors',2);
function __autoload($class) {
	if (file_exists($class.'.php')) {
  	include_once $class.'.php';
	} else {
		list($folder, $className) = explode('_', $class);
		include_once $folder.'/'.$className.'.php';
	}
}